package com.jizhi.onework.framework.model;

import java.util.List;
/**
 * 分页化的结果数据，用于展示列表型数据
 *
 * @author hzhang7
 */
public class PageData<T> {

    private int total;

    private int currentPage;

    private int pageSize;

    private List<T> pageData;


    /**
     * 构造器
     *
     * @param total
     * @param currentPage
     * @param pageSize
     * @param pageData
     */
    public PageData(int total, int currentPage, int pageSize, List<T> pageData) {
        this.total = total;
        this.currentPage = currentPage;
        this.pageSize = pageSize;
        this.pageData = pageData;
    }

    public PageData() {
    }

    /**
     * Getter For total
     *
     * @return total
     */
    public int getTotal() {
        return total;
    }

    /**
     * Setter For total
     *
     * @param total
     */
    public void setTotal(int total) {
        this.total = total;
    }

    /**
     * Getter For currentPage
     *
     * @return currentPage
     */
    public int getCurrentPage() {
        return currentPage;
    }

    /**
     * Setter For currentPage
     *
     * @param currentPage
     */
    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    /**
     * Getter For pageSize
     *
     * @return pageSize
     */
    public int getPageSize() {
        return pageSize;
    }

    /**
     * Setter For pageSize
     *
     * @param pageSize
     */
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * Getter For pageData
     *
     * @return pageData
     */
    public List<T> getPageData() {
        return pageData;
    }

    /**
     * Setter For pageData
     *
     * @param pageData
     */
    public void setPageData(List<T> pageData) {
        this.pageData = pageData;
    }
}
